﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LoginServer
{
    public class Table
    {
        public TableInfo info { get; set; }
        public Table(TableInfo tableinfo)
        {
            this.info = tableinfo;
        }
        public override string ToString()
        {
            return info.ToString();
        }
        public string Str_RecurrenceTable()
        {
            return String.Format("{0}|{1}|{2}|{3}|{4}", info.TableID, info.NickName1, info.Payment, info.CardID, info.Comment);
        }
        public string Str_OutTable()
        {
            return String.Format("{0}", info.TableID);
        }
        public string Str_JoinTable()
        {
            return String.Format("{0}", info.TableID);
        }
        public string Str_CreateTable()
        {
            return String.Format("{0}|{1}|{2}|{3}|{4}", info.TableID, info.NickName1, info.Payment, info.CardID, info.Comment);
        }
    }
}
